package com.zy.test.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 排课表：
上课周期，上课起始时间，上课结束时间，科目ID，教师ID ，教室ID，班级ID，备注，新增时间，
 * @TableName schedule
 */
@TableName(value ="schedule")
@Data
public class Schedule implements Serializable {

    @TableId(value = "schedule_id",type = IdType.ASSIGN_ID)
    private String scheduleId;
    /**
     *
     */
    @TableField(value = "date")
    private String date;

    /**
     *
     */
    @TableField(value = "beg_time")
    private String begTime;

    /**
     *
     */
    @TableField(value = "end_time")
    private String endTime;

    /**
     *
     */
    @TableField(value = "co_code")
    private String coCode;

    /**
     *
     */
    @TableField(value = "te_code")
    private String teCode;

    /**
     *
     */
    @TableField(value = "ro_code")
    private String roCode;

    /**
     *
     */
    @TableField(value = "cl_code")
    private String clCode;

    /**
     *
     */
    @TableField(value = "memo")
    private String memo;

    /**
     *
     */
    @TableField(value = "cre_date")
    private Date creDate;

    /**
     *
     */
    @TableField(value = "modi_date")
    private Date modiDate;

    /**
     *
     */
    @TableField(value = "teller")
    private String teller;
    @TableField(exist = false)
    private Integer pageNum;
    @TableField(exist = false)
    private Integer pageSize;

    //    co_code	         VARCHAR(20)	      科目ID           主键
//te_code	         VARCHAR(20)	      教师ID           主键
//ro_code	         VARCHAR(20)	      教室ID           主键
//cl_code	         VARCHAR(20)	      班级ID           主键
    /**
     * 科目ID
     */
    @TableField(exist = false)
    private String coName;
    /**
     * 教师ID名称
     */
    @TableField(exist = false)
    private String teName;

    /**
     * 教室ID名称
     */
    @TableField(exist = false)
    private String roName;

    /**
     * 班级ID,名称
     */
    @TableField(exist = false)
    private String clName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
